package com.tdkj.action.backstage.shop;

import java.util.List;

import javax.annotation.Resource;

import com.tdkj.action.BaseAction;
import com.tdkj.model.shop.BeanGoodComment;
import com.tdkj.service.shop.IBeanGoodCommentService;


public class GoodCommentManageAction extends BaseAction {
    
	private IBeanGoodCommentService goodCommentService;
	
	private Long id;
	
	private List<BeanGoodComment> comments ;
	
	
	public String execute() {
		comments = goodCommentService.findAll(BeanGoodComment.class, "createTime", "desc");
		return "success";
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the comments
	 */
	public List<BeanGoodComment> getComments() {
		return comments;
	}

	/**
	 * @param comments the comments to set
	 */
	public void setComments(List<BeanGoodComment> comments) {
		this.comments = comments;
	}

	/**
	 * @param goodCommentService the goodCommentService to set
	 */
	@Resource
	public void setGoodCommentService(IBeanGoodCommentService goodCommentService) {
		this.goodCommentService = goodCommentService;
	}



}
